var stColumnsList = new Array();

	  
stColumnsList[0] = {
	header : 'Name',
	dataIndex : 'studentName',
	                
	 flex: 1
};
 
stColumnsList[1] = {
	header : 'Batch',
	dataIndex : 'batch',
	
               
	 flex: 1
}; 
 
stColumnsList[2] = {
	header : 'Admission No',
	dataIndex : 'admNo',
	
               
	 flex: 1
}; 
	
	

stColumnsList[3] = {
	header : 'Class',
	dataIndex : 'className',
	field : 'textfield',
	flex: 1 
	};
			


stColumnsList[4] = {
	header : 'Roll Number',
	dataIndex : 'rollNo',
	field : 'textfield',
	flex: 1 
	};
			


 

var cellEditor = Ext.create('Ext.grid.plugin.CellEditing',{	clicksToEdit : 2}) ;

Ext.define('EUF.view.StudentList', {
	//extend : 'Ext.grid.Panel',
	extend: 'Ext.container.Container',
	alias :'widget.StudentList',
		
	requires : [ 'Ext.toolbar.TextItem', 'Ext.form.field.Checkbox',
			'Ext.form.field.Text', 'Ext.grid.feature.Grouping' ],

	
	initComponent: function() {
        var me = this;
        
        me.items = [
		{
			//xtype: 'gridpanel',
			xtype: 'FantaSearchGrid',
			//title : 'Student List',
			id:'StudentList',
			viewConfig: {
			    loadMask: false
			},
			//loading:false,

			stripeRows : true,
			//selType : 'cellmodel',
			plugins : [cellEditor],
			autoScroll:true,
			frame : true,
			store : 'StudentStore',
			columns : stColumnsList,
			 
		}];
		me.callParent(arguments);
		var gridList = Ext.getCmp('StudentList');
		console.log(gridList);
		
		if(gridList!=undefined)
		{
			var studentStore =  gridList.getStore();
			
			console.log('ddd');
			
	studentStore.load();
	console.log(studentStore);
		}
    },
   
	
});
